#include "PlayerRiotShield.h"

//respond to key presses
void PlayerRiotShield::runLogic(){
	double ax = rightPressed ? (leftPressed ? 0 : SHIELDACCX) : (leftPressed ? -SHIELDACCX : 0);
	double ay = upPressed ? (downPressed ? 0 : SHIELDACCY) : (downPressed ? -SHIELDACCY : 0);
	myPos.accelerate(ax,ay,0);
	myPos.accelerateResistance(DECELRX, DECELRY, 0);
}
